<template>
    <div class="his-tom">
        <div class="pop-bg"></div>
        <div class="pop-wrap">
            <!--今天发布-->
            <div class="pop-con">
                <div class="pop-con-detail" v-if="type==1">
                    <div class="red">输送单{{detail.guid}}：{{detail.name}} {{detail.bedno}}号床　 输送类型:{{detail.dept}} </div>
                    <h3>确定发布为今日单？</h3>
                </div>
                <div class="pop-con-detail" v-if="type==2">
                    <div class="red">输送单{{detail.guid}}：{{detail.name}} {{detail.bedno}}号床　 输送类型:{{detail.dept}} </div>
                    <h3>确定预约到明天凌晨发布？</h3>
                </div>
                <div class="handle-btn">
                    <button class="btn close-btn" @click="cancel">取消</button>
                    <button class="btn ok-btn" @click="sureHandle">确定</button>
                </div>
            </div>
        </div>
    </div>
</template>
<script>
    export default{
        props:{
            type:'',
            detail:''
        },
        data(){
            return{
                newLis:[],
                idLis:[],
                isAll:false
            }
        },
        methods:{
            cancel(){
                this.$emit('colse');
            },
            sureHandle(){
                this.$emit('sure');
                this.cancel();
            }
        },
        mounted() {
            setTimeout(function(){
                this.newLis = this.list
            }.bind(this),50);

        }
    }
</script>
<style scoped>
    .his-tom .pop-wrap {
        width: 600px;
        top:50%;
        margin-left: -300px;
    }
    .his-tom .pop-wrap .pop-con {
        border-radius: 6px;
        padding: 10px 10px 0;
    }
    .his-tom .pop-con-detail div {
        text-align: center;
        line-height: 34px;
        font-size: 16px;
    }
    .his-tom .pop-con-detail h3 {
        text-align: center;
        line-height: 34px;
        font-size: 20px;
        color: #686868;
    }
</style>
